$.namespace("restrpc.dashboard.client");
restrpc.dashboard.client = function () {  
	return  {
		initialize : function() {
			this.addClientNavigator();
		},
		 
		addClientNavigator : function() {
			var html = 
				'<ul id="subnav" class="nav nav-list bs-docs-sidenav"> ' + 
				'<li><a href="serversettings.html"><i class="icon-chevron-right"></i>Server Settings</a></li> ' + 
				'<li><a href="servicelist.html"><i class="icon-chevron-right"></i>Service List</a></li> ' + 
				'</ul> ';
			$(".bs-docs-sidebar").prepend(html);
			
			var index = -1;
			if (window.location.href.indexOf("serversettings.html") > 0) {
				index = 0;
			}
			else if (window.location.href.indexOf("servicelist.html") > 0) {
				index = 1;
			}
			$("#subnav li").eq(index).addClass("active");
		}
	}
}();

$(document).ready(function() {
	restrpc.dashboard.client.initialize();
});
